package com.dom.api.purc;

import com.baomidou.mybatisplus.plugins.Page;
import com.dom.common.model.vo.apply.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 采购订单服务接口
 *
 * @author xllei
 * @Date 2018-11-06
 */
@RequestMapping("/invo/purc")
public interface PurcOrderApi {
    @RequestMapping(value = "/getPurcOrderList2", method = RequestMethod.GET)
    Page<OrderInfo> getPurcOrderList2(@RequestParam("P039R") P039R p039R);

    @RequestMapping(value = "/getPurcOrderList", method = RequestMethod.POST)
    P039A getPurcOrderList(@RequestBody P039R p039R);

    @RequestMapping(value = "/addPurcOrder", method = RequestMethod.POST)
    String addPurcOrder(@RequestBody P030R request);

//    @RequestMapping(value = "/editPurcOrder", method = RequestMethod.POST)
//    boolean editPurcOrder();
//
//    @RequestMapping(value = "/editPurcOrderDetail", method = RequestMethod.POST)
//    boolean editOrderDetail();

    @RequestMapping(value = "/getPurcOrderDetailList", method = RequestMethod.POST)
    P049A getPurcOrderDetailList(@RequestBody P049R request);

    @RequestMapping(value = "/editPurcOrder", method = RequestMethod.POST)
    P032A editPurcOrder(@RequestBody P032R request);
}
